home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Diversos / eggrun.swf / scripts / frame_3 / PlaceObject2_71_77 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Encoding:
Text File  |  2007-03-28  |  1.1 KB  |  49 lines

  1. onClipEvent(load){
  2.    function gottwig()
  3.    {
  4.       gottwig_s.start();
  5.    }
  6.    function buttonsound()
  7.    {
  8.       button_s.start();
  9.    }
  10.    function levelcomplete()
  11.    {
  12.       levelcomplete_s.start();
  13.    }
  14.    function startsound()
  15.    {
  16.       if(_root.newLoad == 0)
  17.       {
  18.          _root.newLoad = 1;
  19.          intro_s.start();
  20.       }
  21.    }
  22.    function stopsound()
  23.    {
  24.       main_s.stop("egg_main_loop2.wav");
  25.       main_s.start();
  26.       main_s.stop("egg_main_loop2.wav");
  27.    }
  28.    musicstatus = true;
  29.    gottwig_s = new Sound();
  30.    gottwig_s.attachSound("eggfx_pickup.wav");
  31.    button_s = new Sound();
  32.    button_s.attachSound("eggfx_button.wav");
  33.    levelcomplete_s = new Sound();
  34.    levelcomplete_s.attachSound("eggfx_finish_level.wav");
  35.    main_s = new Sound();
  36.    main_s.attachSound("egg_main_loop2.wav");
  37.    main_s.onSoundComplete = function()
  38.    {
  39.       main_s.start();
  40.    };
  41.    intro_s = new Sound();
  42.    intro_s.attachSound("egg_main_intro.wav");
  43.    intro_s.start();
  44.    intro_s.onSoundComplete = function()
  45.    {
  46.       main_s.start();
  47.    };
  48. }
  49.